// CustomerClient.java
package com.neusoft.yiyang.task.client;

import com.neusoft.yiyang.common.entity.customer.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "customer-service")
public interface CustomerClient {
    
    // 获取需要生成护理任务的客户列表
    @GetMapping("/customers/with-caretaker")
    List<Customer> getCustomersWithCaretaker();
    
    // 根据ID获取客户信息
    @GetMapping("/customers/{customerId}")
    Customer getCustomerById(@PathVariable("customerId") Integer customerId);
}